import { useComp } from '@/hooks'
import { ElButton } from 'element-plus'
import '../styles/MySort.scss'

export default useComp(() => {
  const startSort = () => {
    console.log('startSort')
  }
  const startSearch = () => {
    console.log('分擦找')
  }
  return () => (
    <div class="sort-container">
      <h1>冒泡排序</h1>
      <ElButton onClick={startSort}>冒泡排序</ElButton>
      <h1>二分查找</h1>
      <ElButton onClick={startSearch}>二分查找</ElButton>
    </div>
  )
})
